package org.jeecg.modules.coupon.service.impl;

import org.jeecg.modules.coupon.entity.Coupon;
import org.jeecg.modules.coupon.mapper.CouponMapper;
import org.jeecg.modules.coupon.service.ICouponService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 优惠券
 * @Author: jeecg-boot
 * @Date:   2024-06-28
 * @Version: V1.0
 */
@Service
public class CouponServiceImpl extends ServiceImpl<CouponMapper, Coupon> implements ICouponService {

    @Autowired
    private CouponMapper couponMapper;

    @Override
    public List<Coupon> selectByMainId(String mainId) {
        return couponMapper.selectByMainId(mainId);
    }
}
